dita = {
  commands: {

    /**
     * A command class that highlights draft comments markup.
     *
     * (topic : authoring elements)
     */
    ShowDraftCommentsCommand: {

      execute: function (scope) {
        scope.set("show-draft-comment", !scope.get("show-draft-comment"));
      },

      getEnabled: function (scope) {
        return true;
      },

      getChecked: function (scope) {
        return scope.get("show-draft-comment");
      },
      
      getLabel: function (scope) {
        if (scope.get("show-draft-comment"))
          return "Hide Draft Comments";
        else 
          return "Show Draft Comments";
      }
    }, 


    /**
     * A command class that toggles the XSL view parameter that shows or hides
     * required-cleanup markup
     *
     * (topic : authoring elements)
     */
    ShowRequiredCleanupCommand: {

      execute: function (scope) {
        scope.set("show-required-cleanup", !scope.get("show-required-cleanup"));
      },

      getEnabled: function (scope) {
        return true;
      },

      getChecked: function (scope) {
        return scope.get("show-required-cleanup");
      },
      
      getLabel: function (scope) {
        if (scope.get("show-required-cleanup"))
          return "Hide Required Cleanup";
        else
          return "Show Required Cleanup";
      }
    }
  }
};
